﻿/*******************************************************************   
 * 创建日期：2021.07.09 10:59:45  
 * 创 建 者：Administrator 
 * 功能描述：游戏元素  
 *******************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cars
{
    internal class Actor : IMoveable
    {
        protected Position m_Position = Position.zero;
        public Position Position => m_Position;

        public Actor() { }

        public Actor(Position position)
        {
            m_Position = position;
        }
        public virtual void Move(Position deltPos)
        {
            m_Position += deltPos;
        }

        public virtual void Draw()
        {

        }

        public virtual bool Dead()
        {
            return false;
        }
    }
}
